#!/usr/bin/env bash

set -e
mkdir -p /opt/tmp

wget http://npm.taobao.org/mirrors/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2

tar   -jxvf    phantomjs-2.1.1-linux-x86_64.tar.bz2

mv phantomjs-2.1.1-linux-x86_64.tar.bz2 /opt/tmp
mv phantomjs-2.1.1-linux-x86_64 /opt/phantomjs